package uutalk.netcloud.talk.base.util.view;

import android.widget.TextView;

/**
 * Created by hujie on 16/6/19.
 */
public class ViewUtil {


    public static String getText(boolean trim, TextView textView) {
        String text = textView.getText().toString();
        if (trim) {
            text = text.trim();
        }
        return text;
    }

    public static boolean isEmpty(TextView tv) {
        return getText(true, tv).isEmpty();
    }
}
